home *** CD-ROM | disk | FTP | other *** search
/ Enigma Amiga Life 109 / EnigmaAmiga109CD.iso / dalla rivista / amiga.free / diropus4.12b_gpl / config / functions.h < prev    next >
C/C++ Source or Header  |  2000-01-27  |  9KB  |  293 lines

  1. /*
  2.  
  3. Directory Opus 4
  4. Original GPL release version 4.12
  5. Copyright 1993-2000 Jonathan Potter
  6.  
  7. This program is free software; you can redistribute it and/or
  8. modify it under the terms of the GNU General Public License
  9. as published by the Free Software Foundation; either version 2
  10. of the License, or (at your option) any later version.
  11.  
  12. This program is distributed in the hope that it will be useful,
  13. but WITHOUT ANY WARRANTY; without even the implied warranty of
  14. MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  15. GNU General Public License for more details.
  16.  
  17. You should have received a copy of the GNU General Public License
  18. along with this program; if not, write to the Free Software
  19. Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.
  20.  
  21. All users of Directory Opus 4 (including versions distributed
  22. under the GPL) are entitled to upgrade to the latest version of
  23. Directory Opus version 5 at a reduced price. Please see
  24. http://www.gpsoft.com.au for more information.
  25.  
  26. The release of Directory Opus 4 under the GPL in NO WAY affects
  27. the existing commercial status of Directory Opus 5.
  28.  
  29. */
  30.  
  31. void KPrintF __ARGS((char *,...));
  32.  
  33. /* main.c */
  34.  
  35. main(int,char **);
  36. void quit(void);
  37. void getconfig(void);
  38. void giveconfig(void);
  39. void readconfig(void);
  40. void configmsg(int);
  41. void fixcstuff(struct ConfigStuff *);
  42. void cstufffix(struct ConfigStuff *);
  43. void cleanconfigscreen(void);
  44. void showconfigscreen(int);
  45. void initsidegads(char **,int,int);
  46. void inittickgads(struct ConfigGadget *,int,int);
  47. void removetickgads(void);
  48. processtickgad(struct ConfigGadget *,int,int,int);
  49. struct ConfigUndo *makeundo(int);
  50. void copygadgets(struct dopusgadgetbanks *,struct dopusgadgetbanks *,struct DOpusRemember **);
  51. void copyfiletypes(struct dopusfiletype *,struct dopusfiletype **,struct DOpusRemember **);
  52. void doundo(struct ConfigUndo *,int);
  53. void freegadgets(struct dopusgadgetbanks *);
  54. void freegadgetbank(struct dopusgadgetbanks *,int);
  55. void freefunction(struct dopusfunction *);
  56. void freenewfunction(struct newdopusfunction *);
  57. char *getcopy(char *,int,struct DOpusRemember **);
  58. void makestring(char *buf,...);
  59. getstring(char *,char *,int,int);
  60. request(char *);
  61. do_request(char *,char *,char *);
  62. void doglassimage(struct Gadget *);
  63. void freestring(char *);
  64. void doscreentitle(char *);
  65. struct IntuiMessage *getintuimsg(void);
  66. struct TextFont *getfont(char *,int *,int);
  67. void load_palette(struct Screen *,ULONG *,int);
  68. void get_palette(struct Screen *,ULONG *,int);
  69. void open_screen(void);
  70. void close_screen(void);
  71. void get_colour_table(void);
  72. void free_colour_table(struct ColorMap *);
  73. void loadrgb4(struct Screen *,USHORT *,int);
  74.  
  75. /* main1.c */
  76.  
  77. dooperationconfig(void);
  78. dosystemconfig(void);
  79. void getnextgadget(struct Gadget *);
  80. fixformlist(int);
  81. void fixdisplaylengths(int);
  82. system_requester(char *,char *,struct Gadget *,int);
  83. void system_makeiconlist(int);
  84. void system_showicon(char *,int);
  85. void get_language_list(struct DOpusRemember **);
  86. void quicksort(char **,int,int);
  87. void sortswap(char **,int,int);
  88.  
  89. /* main2.c */
  90.  
  91. dogadgetconfig(void);
  92. void showgadgets(struct dopusgadgetbanks *,int);
  93. void showgadgetname(struct newdopusfunction *,struct Gadget *);
  94. makenewbank(int);
  95. struct dopusgadgetbanks *lastbank(struct dopusgadgetbanks *);
  96. void dogadgetinfo(char *);
  97. domenuconfig(void);
  98. void showmenus(int);
  99. void showmenuname(struct newdopusfunction *,struct Gadget *);
  100. void showmenutext(char *,int,int,int,int);
  101. void clearmenu(struct newdopusfunction *);
  102. doinitmenutext(int);
  103. void sortmenustrip(int);
  104. void do_menuscreen_title(int);
  105.  
  106. /* main3.c */
  107.  
  108. editfunction(struct dopusfunction *func,int,APTR);
  109. void setuplist(struct DOpusListView *,int,int);
  110. void makefunclist(char *,char **,char *);
  111. void makedispfunc(char *,char,char *);
  112. char *compilefunclist(char **,char *,struct DOpusRemember **);
  113. void freefunclist(char **);
  114. void docolourbox(struct RastPort *,int,int,int,int);
  115. void docoloursel(struct RastPort *,int,int,int);
  116. void drawcompbox(struct RastPort *,int,int,int,int);
  117. void showkey(USHORT,USHORT,int,int,int,int);
  118. void showfuncob(struct RastPort *,char *,int,int,int,int,int);
  119. void makeselflags(int,char *);
  120. getselflags(char *);
  121. void checkmutflags(char *,int);
  122. void editgadsoff(void);
  123. void editgadson(int);
  124. void deleteentry(char **,char *,char **,int);
  125. void endedit(void);
  126. void setupforedit(int,int);
  127. void checkswapgad(void);
  128. funcrequester(int,char *,char *);
  129. void makenewentry(char **,char *,char **,int);
  130. void setupcolourbox(struct RastPort *,int,int,int,int);
  131. void getfiletypefunc(struct dopusfunction *,struct dopusfiletype *,int);
  132. void makefiletypefunc(struct dopusfunction *,struct dopusfiletype *,int);
  133. void fixeditfunction(struct dopusfunction *,char *,char **,char *,int,int,APTR,int);
  134. void setupeditdisplay(struct dopusfunction *,int,APTR,int,char **,char **,char *,char *,int);
  135. void erasefunction(struct dopusfunction *,char **,char **,char *);
  136. fixfunctypelist(struct dopusfiletype *);
  137. void add_appobject(int);
  138. void rem_appobject(int);
  139. void do_gad_label(char *,int,int);
  140.  
  141. /* main4.c */
  142.  
  143. dodriveconfig(void);
  144. void showdrives(void);
  145. void showdrivename(struct dopusfunction *,struct Gadget *);
  146. doinitdrivetext(int);
  147. docolourgad(struct RastPort *,int,int,int,int,char *,int *,int *,int);
  148. void driveeditoff(void);
  149. void deletedrive(struct dopusfunction *);
  150. void sortdrivebank(int);
  151.  
  152. /* main5.c */
  153.  
  154. dofiletypeconfig(void);
  155. char **makefiletypelist(struct DOpusRemember **);
  156. void showtypelist(char **);
  157. doinitfiletypetext(int);
  158. void filetypetitle(struct dopusfiletype *);
  159. editfiletype(struct dopusfiletype *,struct DOpusRemember **,int);
  160. editclass(struct fileclass *,int);
  161. void addfiletype(struct dopusfiletype *);
  162. void readfileclasses(void);
  163. importfileclasses(void);
  164. savefileclasses(void);
  165. addfileclass(char *,char *,char *);
  166. void freefileclasses(void);
  167. void removefileclass(struct fileclass *);
  168. char **makeclasslist(struct DOpusRemember **);
  169. readline(char *,int,char *,int);
  170. editfileclass(struct fileclass *,int);
  171. void makeeditclasslist(struct fileclass *,char **,char *);
  172. void dispclasslist(char **,char *,char **);
  173. void seteditclassgads(int);
  174. void removeclassentry(char **,char *,int);
  175. void insertnewclass(char **,char *,int,char **,char *,int);
  176. void endclassedit(int,char **,char *,char **);
  177. void makeclassrecog(struct fileclass *,unsigned char **,unsigned char *);
  178. void checkclassswap(void);
  179. void showclassop(int);
  180. struct fileclass *getfileclasslist(int);
  181. void draw_file_view(void);
  182. void free_file_view(void);
  183. void load_file_view(void);
  184. void file_view_text(char *,int);
  185. void show_file_view(void);
  186. void show_view_number(int,int);
  187. void cursor_fileview(int);
  188.  
  189. /* screen.c */
  190.  
  191. doscreenconfig(void);
  192. void makescreenedit(int);
  193. void removescreenedit(int);
  194.  
  195. /* screen_colors.c */
  196.  
  197. void showcolourvals(int,int);
  198. void updatecolourvals(int,int);
  199. void showscreencolours(int,char **,char **,int);
  200. void solidblock(struct RastPort *,char *,int,int,int,int,int,int,int);
  201. void showcolourscycle(int,int,int);
  202.  
  203. /* screen_screenmode.c */
  204.  
  205. initscreenmodes(void);
  206. addscreenmode(char *,UWORD,UWORD,UWORD,UWORD,UWORD,UWORD,UWORD,ULONG);
  207. struct ScreenMode *showdisplaydesc(void);
  208. void fixmodegads(struct ScreenMode *);
  209. void fixdefaultgads(struct ScreenMode *);
  210. void sortscreenmodes(int,int);
  211. struct ScreenMode *getscreenmode(int);
  212.  
  213. /* screen_fonts.c */
  214.  
  215. initfontlist(int,int,int);
  216. void sortfontlist(struct AvailFonts *,int,int);
  217. void dofontdemo(char *,int);
  218.  
  219. /* screen_palette.c */
  220.  
  221. void showpalettegad(int);
  222. void scalecol(ULONG *);
  223. void scalecolup(ULONG *);
  224.  
  225. /* screen_arrows.c */
  226.  
  227. void showupdownslider(void);
  228. void showleftrightslider(void);
  229. void showstringgadget(void);
  230. void showarrowborders(int,int);
  231. void drawarrowrec(int);
  232. void fixarrowgads(int);
  233.  
  234. /* screen_sliders.c */
  235.  
  236. void show_slider_setup(int,int,int);
  237.  
  238. /* main7.c */
  239.  
  240. void busy(void);
  241. void unbusy(void);
  242. void dosave(int);
  243. doload(int,int);
  244. void copyconfigonly(struct Config *,struct Config *);
  245. dolistwindow(char *,int,int,char **,int,char *,int *);
  246. void copytoclip(struct dopusfunction *,char **,char *,char *);
  247. pasteclip(struct dopusfunction *,char **,char *,char **,char *);
  248. void makefilebuffer(char *);
  249. char *strstri(char *,char *);
  250.  
  251. /* main8.c */
  252.  
  253. dohotkeysconfig(void);
  254. void makehotkeylist(void);
  255. doedithotkey(struct dopushotkey *);
  256. void loadpalette(USHORT *,ULONG *,int);
  257. void loadrgbtable(struct ViewPort *,ULONG *,int,int);
  258. void drawcornerimage(struct RastPort *,int,int,int,int);
  259. fixrmbimage(struct RMBGadget *,struct Gadget *,int,int,int);
  260. void doradiobuttons(void);
  261. void fix_gadget_border(struct Gadget *);
  262. void select_gadget(struct Gadget *,int);
  263. void fix_gadget_positions(void);
  264. void fix_gad_pos(struct Gadget *,short *);
  265.  
  266. /* main9.c */
  267.  
  268. void readhelp(void);
  269. void makehelpname(char *);
  270. void doconfighelp(void);
  271. void dohelpmsg(char *);
  272. void load_clips(void);
  273. void save_clips(void);
  274. readfile(char *,char **,int *);
  275. void init_strings(void);
  276. void setup_list_window(struct NewWindow *,struct DOpusListView *,struct Gadget *,int);
  277.  
  278. /* lsprintf.asm */
  279.  
  280. __asm SwapMem(register __a0 char *src,register __a1 char *dst,register __d0 int size);
  281. void lsprintf __ARGS((char *,char *,...));
  282.  
  283. /* strings.c */
  284.  
  285. void read_strings(void);
  286.  
  287. /* paint_mode.c */
  288.  
  289. get_paint_colours(int *,int *,int);
  290. void do3dbox(int,int,int,int);
  291. void fix_slider(struct Gadget *);
  292. struct Window *openwindow(struct NewWindow *);
  293.